package com.whfc.mach.dto.iot;

import lombok.Data;

import java.util.Date;

/**
 * @Description:倾角报警
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-01-06 11:10
 */
@Data
public class MachWarnRotation extends MachWarnItem {

    /**
     * 报警类型
     */
    private int warnType = MsgConst.WARN_TYPE_ROTARY;

    /**
     * 报警时间
     */
    private Date warnTime;

    /**
     * 俯仰角
     */
    private double rotationX;

    /**
     * 航向角
     */
    private double rotationY;

    /**
     * 翻滚角
     */
    private double rotationZ;

    @Override
    public int warnType() {
        return warnType;
    }

    @Override
    public int dataLength() {
        return 1 + 6 + 4;
    }
}
